<template>
    <n-data-table ref="dataTableRef" v-bind="$attrs">
        <slot />
    </n-data-table>
</template>
<script setup lang="ts">
import { NDataTable } from 'naive-ui';

const dataTableRef = useTemplateRef<InstanceType<typeof NDataTable>>('dataTableRef')
defineExpose({
    scrollTo: (...args: Parameters<InstanceType<typeof NDataTable>['scrollTo']>) => dataTableRef.value?.scrollTo(...args),
})
</script>